<!--
 * @Author: your name
 * @Date: 2021-10-18 11:13:35
 * @LastEditTime: 2021-10-18 11:19:33
 * @LastEditors: your name
 * @Description: In User Settings Edit
 * @FilePath: \jingfeng-web\src\views\redirect\index.vue
-->
<script>
export default {
    // created() {
    //     const { params, query } = this.$route
    //     const { path } = params
    //     console.log('path', path)
    //     this.$router.replace({ path: '/' + path, query })
    // },
    beforeRouteEnter(to, from, next) {
        next(instance => instance.$router.replace({ path: from.fullPath, meta: from.meta }))
    },
    render: function(h) {
        return h() // avoid warning message
    }
}
</script>
